package com.ruan.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.ruan.entity.R;
import com.ruan.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruan.query.UserQuery;
import com.ruan.vo.UserVo;
import org.springframework.web.multipart.MultipartFile;

import java.util.HashMap;

/**
* @author 59499
* @description 针对表【user】的数据库操作Service
* @createDate 2023-09-07 19:02:30
*/
public interface UserService extends IService<User> {

    R<Void> register(User user);

    R<HashMap<String, String>> login(User user);

    R<Void> logout();

    R<HashMap<String, String>> smsLogin(String telephone);

    R<String> uploadAvatar(MultipartFile file);

    R<User> getUserById(String id);

    R<Void> editUser(UserVo userVo);

    R<IPage<User>> getUserList(UserQuery userQuery);
}
